package com.xmx.service.impl;

import com.xmx.entity.CrmUsers;
import com.xmx.mapper.ICrmUsersMapper;
import com.xmx.service.ICrmUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * overview：
 * author:
 * 2023年05月04日 14:12:
 */
@Service
public class ICrmUsersServiceImpl implements ICrmUsersService {
    @Autowired
    private ICrmUsersMapper iCrmUsersMapper;

    @Override
    public CrmUsers queryUserBy(CrmUsers crmUsers) {
        return iCrmUsersMapper.queryUserBy(crmUsers);
    }

    @Override
    public CrmUsers queryCrmUserById(Integer id) {
        return iCrmUsersMapper.queryCrmUserById(id);
    }

    @Override
    public List<CrmUsers> queryAllUsers() {
        return iCrmUsersMapper.queryAllUsers();
    }

    @Override
    public void addNewUser(CrmUsers users) {
        iCrmUsersMapper.addNewUser(users);
    }

    @Override
    public void delteuserByid(Integer uid) {
        iCrmUsersMapper.delteuserByid(uid);
    }

    @Override
    public void updateUser(CrmUsers crmUsers) {
        iCrmUsersMapper.updateUser(crmUsers);
    }

}
